// import com.alibaba.druid.sql.ast.statement.SQLExprTableSource;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.ArrayList;
// import java.util.List;
#pragma once
#include "MySqlStatementImpl.h"

class MySqlOptimizeStatement : virtual public MySqlStatementImpl
{
public:
  BOOL_ptr noWriteToBinlog;
  BOOL_ptr local;

  SQLExprTableSource_list_ptr tableSources;

  MySqlOptimizeStatement();
  SHAREDOBJECT(MySqlOptimizeStatement);
  void accept0(MySqlASTVisitor_ptr visitor);

  BOOL_ptr isNoWriteToBinlog();

  void setNoWriteToBinlog(BOOL_ptr noWriteToBinlog);

  BOOL_ptr isLocal();

  void setLocal(BOOL_ptr local);

  SQLExprTableSource_list_ptr getTableSources();

  void addTableSource(SQLExprTableSource_ptr tableSource);
};
